package com.smartscreen.baseinfomanage.entity;

import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;

@TableName("student")
public class Student {
    @TableId(value = "student_id", type = IdType.INPUT)
    private String studentId;
    
    @TableField("name")
    private String name;
    
    @TableField("student_number")
    private String studentNumber;
    
    // 添加缺失的 classId 字段
    @TableField("class_id")
    private String classId;
    
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    public Student() {}

    public Student(String studentId, String name, String studentNumber) {
        this.studentId = studentId;
        this.name = name;
        this.studentNumber = studentNumber;
    }

    // Getters and Setters
    public String getStudentId() { return studentId; }
    public void setStudentId(String studentId) { this.studentId = studentId; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getStudentNumber() { return studentNumber; }
    public void setStudentNumber(String studentNumber) { this.studentNumber = studentNumber; }
    
    // 添加 classId 的 getter 和 setter 方法
    public String getClassId() { return classId; }
    public void setClassId(String classId) { this.classId = classId; }
    
    public LocalDateTime getCreatedAt() { return createdAt; }
    public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
    public LocalDateTime getUpdatedAt() { return updatedAt; }
    public void setUpdatedAt(LocalDateTime updatedAt) { this.updatedAt = updatedAt; }
}